package com.system.entity;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.CrossOrigin;

import java.io.Serializable;

@Component
@CrossOrigin
public class Student implements Serializable {
    private Long stuId;

    private String stuName;

    private String password;

    private String grade;

    private String deptName;

    public Student(Long stuId, String stuName, String password, String grade, String deptName) {
        this.stuId = stuId;
        this.stuName = stuName;
        this.password = password;
        this.grade = grade;
        this.deptName = deptName;
    }

    public Student() {
        super();
    }

    public Long getStuId() {
        return stuId;
    }

    public void setStuId(Long stuId) {
        this.stuId = stuId;
    }

    public String getStuName() {
        return stuName;
    }

    public void setStuName(String stuName) {
        this.stuName = stuName == null ? null : stuName.trim();
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password == null ? null : password.trim();
    }

    public String getGrade() {
        return grade;
    }

    public void setGrade(String grade) {
        this.grade = grade == null ? null : grade.trim();
    }

    public String getDeptName() {
        return deptName;
    }

    public void setDeptName(String deptName) {
        this.deptName = deptName == null ? null : deptName.trim();
    }
}
